<%-- 
    Document   : CadastrarCategorias
    Created on : 15/09/2008, 15:40:21
    Author     : 2006244090114
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <link rel="stylesheet" href="gastozero.css" type="text/css">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>listar/excluir Categorias</title>
    </head>
    <body  class="body" background="imagemDeFundo.jpg">
        <center> <font size="3" face="arial" > <h1>Gasto Zero</h1></font></center><br/><br/><br/>        
        <div class="style1" >            
            <center>
                <font ><a href="Menu.jsp" class="texto" >MENU</a></font>&nbsp;&nbsp;&nbsp;&nbsp;
                <font  class="texto"><a class="texto"  href="CadastrarCategorias.jsp">VOLTAR<<</a></font>&nbsp;&nbsp;&nbsp;&nbsp;
                <font  class="texto"><a class="texto"  href="index.jsp">SAIR >></a></font>&nbsp;&nbsp;&nbsp;&nbsp;
            </center>
        </div>
        <div class="">
            <center>
                <h3>LISTA DAS CATEGORIAS</h3>
            </center><br/>            
            <div class="">
                <center>    
                    <table border="1">
                        <tr>
                            <th>ID</th>
                            <th>Nome Categoria</th>
                            <th>Alterar</th>
                            <th>Excluir</th>
                        </tr>
                        <c:forEach var="categoria"  items="${categorias}">
                            <tr>
                                <td>${categoria.id_categoria}</td>   
                                <td>${categoria.nome_categoria}</td>
                                <td><a href="ServletCategoria?acao=alterar&id_categoria=${categoria.id_categoria}"><center><img src="alterar1.gif" width="25" height="25" /></center></a></td>
                                <td><a href="ServletCategoria?acao=excluir&id_categoria=${categoria.id_categoria}"><center><img src="excluir1.gif" width="25" height="25"/></center></a></td>
                            </tr>
                        </c:forEach> 
                    </table>
                </center>
            </div> 
        </div>       
    </body>
</html>
